﻿@model List<ViewMember>
@inject MemberService memberService
@{
    ViewData["SiteName"] = await SystemConfig.GetByFieldNameAsync("SiteName");
    ViewData["Description"] = await SystemConfig.GetByFieldNameAsync("Description");
    Layout = null;
}
<!doctype html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="@ViewData["Description"]">
    <meta name="author" content="Cdeng">
    <title>@ViewData["SiteName"] - 领导信息</title>
    <link href="~/lib/layui/css/layui.css" rel="stylesheet">
    <link href="~/home/css/main.css" rel="stylesheet">
    <link href="~/home/css/member.css" rel="stylesheet">
</head>
<body>
    @if (ViewData["CmsIndexBanner"] != null && ViewData["CmsIndexBanner"].ToString() != "")
    {
        <style>
            body { width: 100%; min-height: 100%; background: url("@ViewData["CmsIndexBanner"]") top center no-repeat #fff; }

            .cxuu-index-margin-top { margin-top: @ViewData["CmsIndexBannerHeight"]; }
        </style>
    }
    <!--头部部分 开始-->
    <partial name="_Header" />
    <!--头部部分 结束-->

    <div class="layui-container" style="margin-top:10px;">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-panel" style="text-align:left;padding:10px;">

                    <a href="/">Home</a>
                    <a><cite>领导信息</cite></a>

                </div>

            </div>
        </div>
    </div>

    <div class="layui-container">
        <div class="layui-row ">
            <div class="layui-col-md12">
                <div class="cxuu-member-list layui-panel layui-col-md12 ">
                    @foreach (var item in await memberService.ListByDeptId(6, 1, 1800))
                    //6：排除人员状态字典键值显示，1：对应后台部门ID，1800:对应缓存时间秒，以上均可为不填写，有默认
                    {
                        <div class="layui-col-md6 cxuu-member-panel ">
                            <div class="layui-panel layui-col-md12 cxuu-member-panel-info">
                                <div class="layui-col-md5 pic">
                                    <img width="160" height="220" src="@item.Photo" />
                                </div>
                                <div class="layui-col-md7">
                                    <div class="title">@item.Name</div>
                                    <div class="info"><b>职务:</b>@item.Duty</div>
                                    <div class="info"><b>分管:</b>@item.Duties </div>
                                </div>
                            </div>
                        </div>
                    }
                </div>
            </div>
        </div>
    </div>

    <partial name="_Footer" />
</body>
</html>